<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:myns="http://www.sci-lab.it">

	<xsl:output method="xml"
		encoding="UTF-8"
		omit-xml-declaration="yes"
		doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
		indent="yes" />
	<xsl:template match="/">

		<html xmlns="http://www.w3.org/1999/xhtml" lang="it">
			<head>
				<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" />
				<meta http-equiv="Content-Script-Type" content="text/javascript" />
				<meta name="title" content="Home Page - Sci-Lab" />
				<meta name="author" content="Bonotto Sara, Crosato Emanuele, Tronchin Luca,  Vazzoler Raffaele" />
				<xsl:element name="meta">
					<xsl:attribute name="name">description</xsl:attribute>
					<xsl:attribute name="content">Sci-Lab, articolo "<xsl:value-of select="//myns:title" />".</xsl:attribute>
				</xsl:element>
				<meta name="keywords" content="Giornale, Notizie, Scienze, Articoli, Astronomia, Biologia, Chimica, Fisica, Informatica, Matematica, Scienze della natura" />
				<meta name="language" content="italian it" />

				<title>
					<xsl:value-of select="//myns:title" />
					- Sci-Lab
				</title>

				<script type="text/javascript" src="../../js/utilities.js"></script>
				<script type="text/javascript" src="../../js/pageSize.js"></script>
				
				<link type="text/css" rel="stylesheet" href="../../style/screen.css" media="screen" />
				<link type="text/css" rel="stylesheet" href="../../style/print.css" media="print" />
			</head>

			<body onload="pageSize(); checkUserAgent('yes');">
				<div id="contenitoreTutto">
					<div id="header">
						<div id="logo">SCI - LAB</div>
					</div>
	
					<div id="path">
						Ti trovi in: <a href="../home.html">Home</a> &gt;&gt;  
						<xsl:element name="a">
							<xsl:attribute name="href">../<xsl:value-of select="//myns:subject" />1.html</xsl:attribute>
							<xsl:value-of select="//myns:subject" />
						</xsl:element> >>
						<xsl:value-of select="//myns:title" />
					</div>
	
					<div id="contenitoreMenu">
						<div id="menu">
							<div class="center"> <strong>MENU</strong> </div>
							
							<div id="contentMenu">
								<dl>
									<dt class="marginBottom"><a href="../home.html" hreflang="it" title="Home page" accesskey="h" tabindex="1" >Home (h)</a></dt>
									
									<dt> <a href="../Astronomia1.html" hreflang="it" title="Astronomia" accesskey="a" tabindex="2"> Astronomia (a)</a> </dt>
									<dt> <a href="../Biologia1.html" hreflang="it" title="Biologia" accesskey="b" tabindex="3"> Biologia (b)</a> </dt>
									<dt> <a href="../Chimica1.html" hreflang="it" title="Chimica" accesskey="c" tabindex="4"> Chimica (c)</a> </dt>
									<dt> <a href="../Fisica1.html" hreflang="it" title="Fisica" accesskey="g" tabindex="5"> Fisica (g)</a> </dt>
									<dt> <a href="../Informatica1.html" hreflang="it" title="Informatica" accesskey="i" tabindex="6"> Informatica (i)</a> </dt>
									<dt> <a href="../Matematica1.html" hreflang="it" title="Matematica" accesskey="m" tabindex="7"> Matematica (m)</a> </dt>
									<dt class="marginBottom"> <a href="../Scienze%20della%20Natura1.html" hreflang="it" title="Scienze della Natura" accesskey="n" tabindex="8"> Scienze della natura (n)</a> </dt> 
									
									<dt><a href="../../static_html/whatIsSciLab.html" hreflang="it" title="Sviluppatori" accesskey="s" tabindex="9" > Cos'&#232; Sci-Lab (s)</a></dt>
									<dt><a href="../../static_html/workWithUs.html" hreflang="it" title="Lavora con noi" accesskey="l" tabindex="10" >Lavora per noi (l)</a></dt>
									<dt><a href="../../cgi-bin/reservedArea.cgi" hreflang="it" title="Area riservata" accesskey="v" tabindex="11"> Area riservata (v)</a></dt>
									<dt><a href="../../static_html/siteMap.html" hreflang="it" title="Mappa del sito" accesskey="z" tabindex="12" > Mappa del sito (z)</a></dt>
								</dl>
								<br />
								
								<form action="../../cgi-bin/generateSearch.cgi" method="get">
									<div id="centerFind">
										<label for="search">CERCA ARTICOLI</label><br />
										<input type="text" name="search" title="inserisci delle parole chiave." id="search"/> <br />
										<input type="submit" value="Cerca" />
									</div>
		 						</form>
							</div>
						</div>
					</div>
					
					<div id="contentHome">
	
						<div class="article">
							<div class="date">
								<xsl:value-of select="/myns:articles/myns:article/myns:date" />
							</div>
							<div class="subject">
								<xsl:value-of select="/myns:articles/myns:article/myns:subject" />
							</div>
							<div class="titleArticle">
								<h1>
									<xsl:value-of select="/myns:articles/myns:article/myns:title" />
								</h1>
							</div>
							<div class="abstract">
								<xsl:value-of select="/myns:articles/myns:article/myns:abstract" />
							</div>
							<xsl:if test="/myns:articles/myns:article/myns:content/myns:h2">
								<dl class="articleMenu">
									<xsl:for-each select="/myns:articles/myns:article/myns:content/myns:h2">
										<dt>
											<xsl:element name="a">
												<xsl:attribute name="href">#<xsl:value-of select="." /></xsl:attribute>
												<xsl:value-of select="." />
											</xsl:element>
										</dt>
									</xsl:for-each>
								</dl>
								<div class="clear">
								</div>
							</xsl:if>
							<div class="content">
								<xsl:apply-templates select="/myns:articles/myns:article/myns:content/node()"/>
							</div>
							<div class="author"> <em>di <xsl:value-of select="/myns:articles/myns:article/myns:author" /></em></div>
						</div>
						<div id="commentTitle"><h3>COMMENTI</h3></div>
						
							<xsl:if test="/myns:articles/myns:article/myns:comments/myns:comment">
								<xsl:for-each
									select="/myns:articles/myns:article/myns:comments/myns:comment">
									<div class="comment">
										<div class="date">
											<xsl:value-of select="myns:date" />
										</div>
										<div class="commentAuthor">
											<strong>Autore:  </strong><xsl:value-of select="myns:author" />
										</div>
										<div class="comment_text">
											<xsl:value-of select="myns:text" />
										</div>
									</div>
								</xsl:for-each>
							</xsl:if>

							<xsl:if test="not(/myns:articles/myns:article/myns:comments/myns:comment)">
									<div class="comment">
										Non sono presenti commenti.
									</div>
							</xsl:if>
							
						<br />
						<div class="new_comment_form">
							<form action="../../cgi-bin/addComment.cgi" method="post">
	
								<fieldset id="fieldsetComment">
									<legend id="commentLegend">
										<strong>Scrivi un commento:</strong>
									</legend>
									<xsl:element name="input">
										<xsl:attribute name="type">hidden</xsl:attribute>
										<xsl:attribute name="name">subject</xsl:attribute>
										<xsl:attribute name="id">subject</xsl:attribute>
										<xsl:attribute name="value"><xsl:value-of select="/myns:articles/myns:article/myns:subject" /></xsl:attribute>
									</xsl:element>
									<xsl:element name="input">
										<xsl:attribute name="type">hidden</xsl:attribute>
										<xsl:attribute name="name">title</xsl:attribute>
										<xsl:attribute name="id">title</xsl:attribute>
										<xsl:attribute name="value"><xsl:value-of select="/myns:articles/myns:article/myns:title" /></xsl:attribute>
									</xsl:element>
									<label for="text">Contenuto del commento</label>
									<textarea name="text" id="text" rows="5" cols="" />
									<input name="submitComment" id="submitComment" type="submit"
										value="Commenta" onclick="return can_comment()" title="Aggiungi commento" />
								</fieldset>
							</form>
						</div>
					</div>

					<div id="login">
						<script type="text/javascript">
							is_logged("yes","no","transforms/<xsl:value-of select="/myns:articles/myns:article/myns:subject" />/<xsl:value-of select="$pageName" />.html");
						</script>
					</div>
				</div>
				
				<div id="footer">
					<div class="imageCertification">
						<img src="../../img/css.gif" title="Validazione CSS" alt="Sito certificato secondo le regole css" width="100" height="32" />
					</div>
					<div class="imageCertification">
						<img src="../../img/html.png" title="Validazione XHTML" alt="Sito certificato secondo le regole xhtml 1.0" width="100" height="32" />
					</div>
					<div class="imageCertification">
						<img src="../../img/wai_aaa.gif" title="Validazione WCAG" alt="Livello di accessibilita' del sito AAA " width="100" height="32" />  
					</div>
				</div>
			</body>
		</html>

	</xsl:template>
	
	<xsl:template match="*" xmlns="http://www.w3.org/1999/xhtml">
        <xsl:element name="{local-name(.)}">
        	<xsl:copy-of select="@*"/>
            <xsl:apply-templates/>
        </xsl:element>
    </xsl:template>

    <xsl:template match="@*">
	<xsl:copy />
    </xsl:template>
    
</xsl:stylesheet>